<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>python</title>
</head>
<body>
    <a href="./py/编辑器.html">编辑器</a>
    <a href="./py/pip.html">pip</a>
    <a href="./py/package.html">模块</a>
    <a href="./py/语法.html">语法</a>
<!-- 
    urllib
    request.urlopen(url, data=None, timeout=10)
    #url:  需要打开的网址
    #data：Post提交的数据
    #timeout：设置网站的访问超时时间
        import urllib.request
        def getHtml(url):
        html = urllib.request.urlopen(url).read()
        return html
        
        def saveHtml(file_name, file_content):
        # 注意windows文件命名的禁用符，比如 /
        with open(file_name.replace('/', '_') + ".html", "wb") as f:
        # 写文件用bytes而不是str，所以要转码
        f.write(file_content)
        
        aurl = "http://www.view.sdu.edu.cn/info/1003/75240.htm"
        html = getHtml(aurl)
        saveHtml("sduview", html)
        
        print("下载成功")
-->
</body>
</html>